package cj.web.marriage.constants;

/**
 * 婚典兴趣
 * @author Administrator
 *
 */
public enum MarriageInterestingEnum {
	//1:旅游;2:美食;4:理财;8:置业;16:汽车
	NUM_1("旅游",1),
	//NUM_2("美食", 2),
	NUM_4("理财", 4),
	NUM_8("置业", 8),
	NUM_16("汽车", 16),
	;
    // 成员变量
    private String name;
    private int value;

    // 构造方法
    private MarriageInterestingEnum(String name, int value) {
        this.name = name;
        this.value = value;
    }

    // 普通方法
    public static String getName(int value) {
        for (MarriageInterestingEnum c : MarriageInterestingEnum.values()) {
            if (c.getValue() == value) {
                return c.name;
            }
        }
        return null;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
